package org.aphasia4j.dao;

import java.util.List;

import org.aphasia4j.dao.core.BaseDao;
import org.aphasia4j.model.Category;

/**
 * Dao description for handling {@link Category} related database requests.
 * 
 * @author hillger.t
 */
public interface CategoryDao extends BaseDao<Category> {
  
  /**
   * Selects all {@link Category}s which have the given name part in their description.
   * 
   * @param namePart A non casesensitive name part.
   * @return
   */
  public List<Category> getCategoriesByName(String namePart);
}
